$(document).ready(function(){
	/*
	$("#alertFalloNombreEmail").hide();
	$("#alertGracias").hide();
    $("#botonEnviarEncuesta").click(onClickEnviarEncuesta);
    $("#emailEncuesta").keyup(esMailCorrecto);
    $("#nombreEncuesta").keyup(esNombreCorrecto);*/
    $('#password-reset-form_id').on('submit', function () {
    	alert("hola");
		if ($(this).valid()) {
			alert("hola");
		}
		return false;
	});
    // Setup validation
	$("#password-reset-form_id").validate({
		ignore: '.ignore, .select2-input',
		focusInvalid: false,
		rules: {
			'sigin_reset_email': {
			  required: true,
			  email: true
			},
			'jq-validation-password': {
				required: true,
				minlength: 6,
				maxlength: 20
			},
			'jq-validation-password-confirmation': {
				required: true,
				minlength: 6,
				equalTo: "#jq-validation-password"
			},
			'jq-validation-required': {
				required: true
			},
			'jq-validation-url': {
				required: true,
				url: true
			},
			'jq-validation-phone': {
				required: true,
				phone_format: true
			},
			'jq-validation-select': {
				required: true
			},
			'jq-validation-multiselect': {
				required: true,
				minlength: 2
			},
			'jq-validation-select2': {
				required: true
			},
			'jq-validation-select2-multi': {
				required: true,
				minlength: 2
			},
			'jq-validation-text': {
				required: true
			},
			'jq-validation-simple-error': {
				required: true
			},
			'jq-validation-dark-error': {
				required: true
			},
			'jq-validation-radios': {
				required: true
			},
			'jq-validation-checkbox1': {
				require_from_group: [1, 'input[name="jq-validation-checkbox1"], input[name="jq-validation-checkbox2"]']
			},
			'jq-validation-checkbox2': {
				require_from_group: [1, 'input[name="jq-validation-checkbox1"], input[name="jq-validation-checkbox2"]']
			},
			'jq-validation-policy': {
				required: true
			}
		},
		messages: {
			'jq-validation-policy': 'You must check it!'
		}
	});
});